<?php
/**
 * SaleFixture
 *
 */
class SaleFixture extends CakeTestFixture {

/**
 * Table name
 *
 * @var string
 */
	public $table = 'sale';

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
		'customer_name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 250, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'customer_no' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'sold_date' => array('type' => 'date', 'null' => true, 'default' => null),
		'sale_price' => array('type' => 'integer', 'null' => true, 'default' => null),
		'bal_due' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 50, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'paid' => array('type' => 'integer', 'null' => true, 'default' => null),
		'export_to' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 200, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'portofdisc' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 200, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'exit_point' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 200, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'stock_id' => array('type' => 'integer', 'null' => true, 'default' => null),
		'indexes' => array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1)
		),
		'tableParameters' => array('charset' => 'latin1', 'collate' => 'latin1_swedish_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'customer_name' => 'Lorem ipsum dolor sit amet',
			'customer_no' => 'Lorem ipsum dolor sit amet',
			'sold_date' => '2013-12-19',
			'sale_price' => 1,
			'bal_due' => 'Lorem ipsum dolor sit amet',
			'paid' => 1,
			'export_to' => 'Lorem ipsum dolor sit amet',
			'portofdisc' => 'Lorem ipsum dolor sit amet',
			'exit_point' => 'Lorem ipsum dolor sit amet',
			'stock_id' => 1
		),
	);

}
